]> git.pld-linux.org Git - packages/libhome.git/commitdiff
- added DESTDIR patch, fixed install, package devel resources
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 5 Dec 2004 18:46:28 +0000 (18:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- removed COPYING.LIB (just LGPL) and VERSION from doc

Changed files:
    libhome.spec -> 1.4

libhome.spec

index faeb8b9e87c03330a2b5b2687f2c2fdd8d95bda2..ca47a878cd0b1cbf3b3367133f4c07164610a923 100644 (file)
@@ -3,14 +3,13 @@ Summary(pl):  libhome - konfigurowalny emulator funkcji getpwnam(3)
 Name:          libhome
 Version:       0.8.1
 Release:       0.1
-License:       LGPL v2
+License:       LGPL v2+
 Group:         Libraries
 Source0:       http://dl.sourceforge.net/pll/%{name}-%{version}.tar.gz
 # Source0-md5: 44f06ff97b594741f0558efb51960d29
+Patch0:                %{name}-DESTDIR.patch
 URL:           http://pll.sourceforge.net/
-BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: libtool
 BuildRequires: mysql-devel
 BuildRequires: openldap-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -29,16 +28,36 @@ Jej zadaniem jest zamiana wywo
 które potrzebuj± uwierzytelnienia lub identyfikacji u¿ytkownika w
 oparciu o dane z obcych serwerów.
 
+%package devel
+Summary:       Header files for libhome library
+Summary(pl):   Pliki nag³ówkowe biblioteki libhome
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for libhome library.
+
+%description devel -l pl
+Pliki nag³ówkowe biblioteki libhome.
+
+%package static
+Summary:       Static libhome library
+Summary(pl):   Statyczna biblioteka libhome
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static libhome library.
+
+%description static -l pl
+Statyczna biblioteka libhome.
+
 %prep
 %setup -q
+%patch0 -p1 -b .orig
 
 %build
-# ???
-#%%{__libtoolize}
-#%%{__aclocal}
-#%%{__autoconf}
-#%%{__autoheader}
-#%%{__automake}
+cp -f /usr/share/automake/config.* .
 %configure \
        --with-ldap \
        --with-mysql
@@ -46,14 +65,14 @@ oparciu o dane z obcych serwer
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -d $RPM_BUILD_ROOT%{_libdir}
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
 
-# XXX: use make install
-install .libs/home_finger $RPM_BUILD_ROOT%{_bindir}
-install .libs/libhome.so.1.* $RPM_BUILD_ROOT%{_libdir}
-cp -a .libs/libhome.so $RPM_BUILD_ROOT%{_libdir}
+%{__make} install \
+       bindir=$RPM_BUILD_ROOT%{_bindir} \
+       libdir=$RPM_BUILD_ROOT%{_libdir} \
+       includedir=$RPM_BUILD_ROOT%{_includedir} \
+       mandir=$RPM_BUILD_ROOT%{_mandir}
+
 install home.conf $RPM_BUILD_ROOT%{_sysconfdir}
 
 %clean
@@ -64,7 +83,19 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc NEWS README VERSION COPYING
-%attr(755,root,root) %{_bindir}/*
+%doc NEWS README
+%attr(755,root,root) %{_bindir}/home_finger
+%attr(755,root,root) %{_bindir}/libhome.sh
 %attr(755,root,root) %{_libdir}/libhome.so.*.*.*
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/home.conf
+%{_mandir}/man5/home.conf.5*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libhome.so
+%{_libdir}/libhome.la
+%{_includedir}/home
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libhome.a
This page took 0.425175 seconds and 4 git commands to generate.