]> git.pld-linux.org Git - packages/ftb.git/commitdiff
- new auto/th/ftb-0.6.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 23 Nov 2014 09:33:58 +0000 (10:33 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 23 Nov 2014 09:33:58 +0000 (10:33 +0100)
ftb-destdir.patch [new file with mode: 0644]
ftb.spec [new file with mode: 0644]

diff --git a/ftb-destdir.patch b/ftb-destdir.patch
new file mode 100644 (file)
index 0000000..34d61aa
--- /dev/null
@@ -0,0 +1,30 @@
+--- ftb-0.6.2/Makefile.in.orig 2014-11-23 09:46:50.644964709 +0100
++++ ftb-0.6.2/Makefile.in      2014-11-23 09:49:34.681624492 +0100
+@@ -22,6 +22,8 @@
+ @AR_BLRTS@
+ @RANLIB_BLRTS@
+ @BGSYS_LIB_PATH@
++DESTDIR=
++includedir=@includedir@
+ sbindir=@sbindir@
+ libdir=@libdir@
+ abs_top_builddir=@abs_top_builddir@
+@@ -74,11 +76,11 @@
+       ${MAKE} -C components/examples all
+ install:
+-      install -v -b -d @prefix@; 
+-      install -v -b -d @sbindir@;
+-      install -v -b -d @includedir@;
+-      install -v -b -d @libdir@; 
+-      install -v -b @TEMPSBIN@/* @sbindir@;
+-      install -v -b @TEMPLIB@/* @libdir@/;
+-      install -v -b @abs_top_srcdir@/include/*.h @includedir@;
++      install -v -b -d $(DESTDIR)$(prefix); 
++      install -v -b -d $(DESTDIR)$(sbindir);
++      install -v -b -d $(DESTDIR)$(includedir);
++      install -v -b -d $(DESTDIR)$(libdir); 
++      install -v -b @TEMPSBIN@/* $(DESTDIR)$(sbindir);
++      install -v -b ${abs_top_srcdir}/lib/* $(DESTDIR)$(libdir);
++      install -v -b @abs_top_srcdir@/include/*.h $(DESTDIR)$(includedir);
+ #     install -v -b @abs_top_srcdir@/components/examples/*ftb* @prefix@/components/examples;
diff --git a/ftb.spec b/ftb.spec
new file mode 100644 (file)
index 0000000..c199576
--- /dev/null
+++ b/ftb.spec
@@ -0,0 +1,84 @@
+Summary:       Fault Tolerance Backplance library
+Summary(pl.UTF-8):     Biblioteka Fault Tolerance Backplance
+Name:          ftb
+Version:       0.6.2
+Release:       1
+License:       BSD
+Group:         Libraries
+#Source0Download: http://www.mcs.anl.gov/research/cifts/downloads/index.php
+Source0:       http://www.mcs.anl.gov/research/cifts/software/%{name}-%{version}.tgz
+# Source0-md5: d79b3dbcfdbfadb372cd4e47811d3048
+Patch0:                %{name}-destdir.patch
+URL:           http://www.mcs.anl.gov/research/cifts/
+BuildRequires: autoconf >= 2.59
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Fault Tolerance Backplance library.
+
+%description -l pl.UTF-8
+Biblioteka Fault Tolerance Backplance.
+
+%package devel
+Summary:       Header files for FTB library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki FTB
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for FTB library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki FTB.
+
+%package static
+Summary:       Static FTB library
+Summary(pl.UTF-8):     Statyczna biblioteka FTB
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static FTB library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka FTB.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__autoconf}
+%{__autoheader}
+%configure
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README docs/chapters/{01_FTB_on_Linux.txt,02_TroubleShooting.txt} misc/license.BSD
+%attr(755,root,root) %{_sbindir}/ftb_agent
+%attr(755,root,root) %{_sbindir}/ftb_database_server
+%attr(755,root,root) %{_libdir}/libftb.so
+
+%files devel
+%defattr(644,root,root,755)
+%doc docs/ftb_developers_guide.pdf
+%{_includedir}/libftb.h
+%{_includedir}/ftb_*.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libftb.a
This page took 0.097655 seconds and 4 git commands to generate.