2009-08-28 15:08:07 +02:00
|
|
|
#
|
2011-01-17 13:43:23 +01:00
|
|
|
# spec file for package popt
|
2009-08-28 15:08:07 +02:00
|
|
|
#
|
2011-01-17 13:43:23 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-08-28 15:08:07 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: popt
|
2010-09-20 14:51:04 +02:00
|
|
|
Version: 1.16
|
2011-03-18 09:14:06 +01:00
|
|
|
Release: 7
|
2009-08-28 15:08:07 +02:00
|
|
|
#!BuildIgnore: rpmlint-Factory
|
|
|
|
License: MIT
|
|
|
|
Summary: A C library for parsing command line parameters
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Url: http://www.rpm5.org/
|
2010-09-20 14:51:04 +02:00
|
|
|
Source: popt-%{version}.tar.bz2
|
2010-01-14 15:03:00 +01:00
|
|
|
Source2: baselibs.conf
|
2009-08-28 15:08:07 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Popt is a C library for parsing command line parameters. Popt was
|
|
|
|
heavily influenced by the getopt() and getopt_long() functions. It
|
|
|
|
improves on them by allowing more powerful argument expansion. Popt can
|
|
|
|
parse arbitrary argv[] style arrays and automatically set variables
|
|
|
|
based on command line arguments. Popt allows command line arguments to
|
|
|
|
be aliased via configuration files and includes utility functions for
|
|
|
|
parsing arbitrary strings into argv[] arrays using shell-like rules.
|
|
|
|
|
|
|
|
%package -n libpopt0
|
|
|
|
License: MIT
|
|
|
|
Summary: A C library for parsing command line parameters
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Provides: popt = %{version}-%{release}
|
|
|
|
Obsoletes: popt < %{version}
|
|
|
|
|
|
|
|
%description -n libpopt0
|
|
|
|
Popt is a C library for parsing command line parameters. Popt was
|
|
|
|
heavily influenced by the getopt() and getopt_long() functions. It
|
|
|
|
improves on them by allowing more powerful argument expansion. Popt can
|
|
|
|
parse arbitrary argv[] style arrays and automatically set variables
|
|
|
|
based on command line arguments. Popt allows command line arguments to
|
|
|
|
be aliased via configuration files and includes utility functions for
|
|
|
|
parsing arbitrary strings into argv[] arrays using shell-like rules.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
License: MIT
|
|
|
|
Summary: Development files for the popt library
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: libpopt0 = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The popt-devel package includes header files and libraries necessary
|
|
|
|
for developing programs which use the popt C library. It contains the
|
|
|
|
API documentation of the popt library, too.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2011-03-17 14:03:54 +01:00
|
|
|
%configure --libdir=/%{_lib} --disable-static
|
2010-07-20 20:12:55 +02:00
|
|
|
make %{?_smp_mflags}
|
2009-08-28 15:08:07 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2011-03-17 14:03:54 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/%_lib/libpopt.a
|
|
|
|
rm -f $RPM_BUILD_ROOT/%_lib/libpopt.la
|
2010-09-20 14:51:04 +02:00
|
|
|
%if "%{_libdir}" != "%{_prefix}/lib"
|
|
|
|
install -d -m755 %{buildroot}/%{_libdir}/pkgconfig
|
|
|
|
mv %{buildroot}%{_prefix}/lib/pkgconfig/%{name}.pc %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%endif
|
2011-01-16 15:26:37 +01:00
|
|
|
%find_lang %name
|
2009-08-28 15:08:07 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -n libpopt0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libpopt0 -p /sbin/ldconfig
|
|
|
|
|
2011-01-16 15:26:37 +01:00
|
|
|
%files -n libpopt0 -f %name.lang
|
2009-08-28 15:08:07 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc CHANGES COPYING
|
|
|
|
/%{_lib}/libpopt.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README
|
2011-03-17 14:03:54 +01:00
|
|
|
/%{_lib}/libpopt.so
|
2009-08-28 15:08:07 +02:00
|
|
|
%{_includedir}/popt.h
|
|
|
|
%{_mandir}/man3/popt.3*
|
2010-09-20 14:51:04 +02:00
|
|
|
%{_libdir}/pkgconfig/popt.pc
|
2009-08-28 15:08:07 +02:00
|
|
|
|
|
|
|
%changelog
|