Package libuser: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-build-python BuildRequires: /usr/bin/bison /usr/bin/gtkdocize /usr/sbin/nscd libldap-devel libpam0-devel libpopt-devel # END SourceDeps(oneline) BuildRequires: OpenSP %add_optflags %optflags_shared %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: libuser Version: 0.58 Release: alt1_2 Group: System/Base License: LGPLv2+ URL: https://fedorahosted.org/libuser/ # Upstream commit 51e9d56ed656c3aeceb39b7de5a1db7d976d4e51 Patch0: libuser-force-secure-getenv.patch Source: https://fedorahosted.org/releases/l/i/libuser/libuser-%{version}.tar.xz BuildRequires: glib2-devel linuxdoc-tools pam-devel popt-devel python-devel BuildRequires: libsasl2-devel libselinux-devel openldap-devel # To make sure the configure script can find it BuildRequires: nscd # For %%check BuildRequires: openldap-clients openldap-servers openssl # For regenerating autoconf/automake files BuildRequires: gtk-doc libtool gettext-devel automake autoconf Summary: A user and group account administration library Source44: import.info Patch33: libuser-0.57.2-alt-modularized_ldap.patch %description The libuser library implements a standardized interface for manipulating and administering user and group accounts. The library uses pluggable back-ends to interface to its data sources. Sample applications modeled after those included with the shadow password suite are included. %package devel Group: Development/C Summary: Files needed for developing applications which use libuser Requires: %{name}%{?_isa} = %{version}-%{release} Requires: glib2-devel%{?_isa} %description devel The libuser-devel package contains header files, static libraries, and other files useful for developing applications with libuser. %package -n python-module-libuser Summary: Python bindings for the libuser library Group: Development/C Requires: libuser%{?_isa} = %{version}-%{release} %description -n python-module-libuser The libuser-python package contains the Python bindings for the libuser library, which provides a Python API for manipulating and administering user and group accounts. %prep %setup -q %patch0 -p1 -b .force_secure_getenv %patch33 -p0 %build # Copied from upstream autogen.sh gtkdocize --docdir docs/reference libtoolize --force autopoint aclocal -I m4 autoconf -Wall autoheader -Wall automake -Wall --add-missing %configure --with-selinux --with-ldap --with-html-dir=%{_datadir}/gtk-doc/html make %install make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' %find_lang %{name} %check make check # Verify that all python modules load, just in case. LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_libdir}:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH cd $RPM_BUILD_ROOT/%{python_sitelibdir} python -c "import libuser" %files -f %{name}.lang %doc AUTHORS COPYING NEWS README TODO docs/*.txt %config(noreplace) %{_sysconfdir}/libuser.conf %attr(0755,root,root) %{_bindir}/* %{_libdir}/*.so.* %dir %{_libdir}/%{name} %{_libdir}/%{name}/*.so %attr(0755,root,root) %{_sbindir}/* %{_mandir}/man1/* %{_mandir}/man5/* %exclude %{_libdir}/%{name}/*.la %files -n python-module-libuser %doc python/modules.txt %{python_sitelibdir}/*.so %exclude %{python_sitelibdir}/*.la %files devel %{_includedir}/libuser %{_libdir}/*.so %{_libdir}/pkgconfig/* %{_datadir}/gtk-doc/html/* %changelog * Wed Feb 06 2013 Igor Vlasenko <viy@altlinux.ru> 0.58-alt1_2 - update to new release by fcimport * Fri Nov 09 2012 Igor Vlasenko <viy@altlinux.ru> 0.58-alt1_1 - update to new release by fcimport * Mon Oct 01 2012 Igor Vlasenko <viy@altlinux.ru> 0.57.7-alt1_1 - update to new release by fcimport * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 0.57.6-alt1_2 - update to new release by fcimport * Wed May 09 2012 Igor Vlasenko <viy@altlinux.ru> 0.57.6-alt1_1 - update to new release by fcimport * Tue Feb 21 2012 Igor Vlasenko <viy@altlinux.ru> 0.57.4-alt1_1 - update to new release by fcimport * Fri Dec 23 2011 Igor Vlasenko <viy@altlinux.ru> 0.57.3-alt2_2 - spec cleanup thanks to ldv@ * Tue Oct 25 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.57.3-alt1_2.1 - Rebuild with Python-2.7 * Fri Oct 21 2011 Igor Vlasenko <viy@altlinux.ru> 0.57.3-alt1_2 - update to new release by fcimport * Thu Oct 06 2011 Igor Vlasenko <viy@altlinux.ru> 0.57.3-alt1_1 - update to new release by fcimport * Mon Aug 22 2011 Igor Vlasenko <viy@altlinux.ru> 0.57.2-alt1_1 - initial release by fcimport |