OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [email protected] Module: openpkg-src Date: 07-Mar-2009 15:22:40 Branch: HEAD Handle: 2009030714224000 Added files: openpkg-src/libjio libjio.spec Log: new package: libjio 0.24 (Journaled Transactional I/O Library) Summary: Revision Changes Path 1.1 +100 -0 openpkg-src/libjio/libjio.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/libjio/libjio.spec ============================================================================ $ cvs diff -u -r0 -r1.1 libjio.spec --- /dev/null 2009-03-07 15:22:37 +0100 +++ libjio.spec 2009-03-07 15:22:40 +0100 @@ -0,0 +1,100 @@ +## +## libjio.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: libjio +Summary: Journaled Transactional I/O Library +URL: http://blitiri.com.ar/p/libjio/ +Vendor: Alberto Bertogli +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Libraries +License: OSL +Version: 0.24 +Release: 20090307 + +# list of sources +Source0: http://blitiri.com.ar/p/libjio/files/%{version}/libjio-%{version}.tar.gz + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, gcc, make +PreReq: OpenPKG, openpkg >= 20060823 +AutoReq: no +AutoReqProv: no + +%description + Libjio is a user-space C library to do journaled, + transaction-oriented I/O. It provides a very simple API to commit + and rollback transactions, and on top of that a UNIX-alike set of + functions to perform most regular operations (i.e. open(), read(), + write()) in a non-intrusive threadsafe and atomic way, with safe + and fast crash recovery. This allows the library to guarantee file + integrity even after unexpected crashes, never leaving your files in + an inconsistent state. On the disk, the file you work on is exactly + like a regular one, but a special directory is created to store + in-flight transactions. + +%track + prog libjio = { + version = %{version} + url = ftp://ftp.libjio.org/pub/libjio/ + regex = libjio-(__VER__)\.tar\.gz + } + +%prep + %setup -q + +%build + %{l_make} %{l_mflags} \ + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O} -std=c99" \ + libjio.a libjio.pc jiofsck + +%install + rm -rf $RPM_BUILD_ROOT + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/bin \ + $RPM_BUILD_ROOT%{l_prefix}/include \ + $RPM_BUILD_ROOT%{l_prefix}/lib \ + $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig \ + $RPM_BUILD_ROOT%{l_prefix}/man/man3 + %{l_shtool} install -c -s -m 755 \ + jiofsck $RPM_BUILD_ROOT%{l_prefix}/bin/ + %{l_shtool} install -c -m 644 \ + libjio.h $RPM_BUILD_ROOT%{l_prefix}/include/ + %{l_shtool} install -c -m 644 \ + libjio.a $RPM_BUILD_ROOT%{l_prefix}/lib/ + %{l_shtool} install -c -m 644 \ + libjio.pc $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/ + %{l_shtool} install -c -m 644 \ + doc/libjio.3 $RPM_BUILD_ROOT%{l_prefix}/man/man3/ + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List [email protected]
