avatar
Rosa has added 3049e306e4
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "popt-1.16.tar.gz": cfe94a15a2404db85858a81ff8de27c8ff3e235e
view file @ 3049e306e4
... ... --- /dev/null
... ... +++ b/popt-1.16-pkgconfig-libdir.patch
... ... @@ -0,0 +1,11 @@
1
--- popt-1.16/Makefile.am~	2010-05-04 22:55:54.000000000 +0200
2
+++ popt-1.16/Makefile.am	2010-12-11 23:31:40.889824367 +0100
3
@@ -47,7 +47,7 @@ usrlib_LTLIBRARIES = libpopt.la
4
 libpopt_la_SOURCES = popt.c poptparse.c poptconfig.c popthelp.c poptint.c
5
 libpopt_la_LDFLAGS = -no-undefined @LTLIBINTL@ @LTLIBICONV@
6
 
7
-pkgconfigdir = $(prefix)/lib/pkgconfig
8
+pkgconfigdir = $(libdir)/pkgconfig
9
 pkgconfig_DATA = popt.pc
10
 
11
 if HAVE_LD_VERSION_SCRIPT
... ... --- /dev/null
... ... +++ b/popt.spec
... ... @@ -0,0 +1,150 @@
1
%define lib_major 0
2
%define lib_name %mklibname %{name} %{lib_major}
3
%define devel_name %mklibname %{name} -d
4
5
Summary:	C library for parsing command line parameters
6
Name:		popt
7
Version:	1.16
8
Release:	%mkrel 2
9
Epoch:		1
10
License:	MIT
11
Group:		System/Libraries
12
Url:		http://rpm5.org/files/popt/
13
Source0:	http://rpm5.org/files/popt/%{name}-%{version}.tar.gz
14
Patch0:		popt-1.16-pkgconfig-libdir.patch
15
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
16
17
%description
18
Popt is a C library for parsing command line parameters. Popt was
19
heavily influenced by the getopt() and getopt_long() functions, but
20
it improves on them by allowing more powerful argument expansion.
21
Popt can parse arbitrary argv[] style arrays and automatically set
22
variables based on command line arguments. Popt allows command line
23
arguments to be aliased via configuration files and includes utility
24
functions for parsing arbitrary strings into argv[] arrays using
25
shell-like rules.
26
27
%package -n	%{lib_name}
28
Summary:	Main %{name} library
29
Group:		System/Libraries
30
Requires:	%{name}-data = %{epoch}:%{version}
31
Provides:	%{name} = %{version}-%{release}
32
33
%description -n %{lib_name}
34
This package contains the library needed to run programs dynamically
35
linked with the %{name} library.
36
37
%package -n	%{devel_name}
38
Summary:	Development headers and libraries for %{name}
39
Group:		Development/C
40
Requires:	%{lib_name} = %{epoch}:%{version}
41
Requires:	%{lib_name} >= 1:1.15-8
42
Provides:	%{name}-devel = %{epoch}:%{version}-%{release}
43
Provides:	libpopt-devel = %{epoch}:%{version}-%{release}
44
45
%description -n	%{devel_name} 
46
This package contains the header files and libraries needed for
47
developing programs using the %{name} library.
48
49
%package -n	%{name}-data
50
Summary:	Data files for %{name}
51
Group:		System/Libraries
52
53
%description -n	popt-data
54
This package contains popt data files like locales.
55
56
%prep
57
%setup -q
58
%patch0 -p1 -b .pkglib64~
59
autoreconf -f
60
61
%build
62
%configure2_5x	--disable-rpath
63
64
%make
65
66
%install
67
rm -rf %{buildroot}
68
%makeinstall_std
69
mkdir -p %{buildroot}/%{_lib}
70
pushd %{buildroot}/%{_libdir}/
71
mv lib%{name}.so.%{lib_major}* %{buildroot}/%{_lib}
72
ln -sf ../../%{_lib}/lib%{name}.so.%{lib_major}.* lib%{name}.so
73
popd
74
%find_lang %{name}
75
76
%clean
77
rm -rf %{buildroot}
78
79
%files -n %{lib_name}
80
%defattr(-,root,root)
81
%doc README CHANGES
82
/%{_lib}/lib%{name}.so.%{lib_major}*
83
84
%files -n %{devel_name}
85
%defattr(-,root,root)
86
%{_includedir}/%{name}.h
87
%{_libdir}/pkgconfig/popt.pc
88
%{_libdir}/lib%{name}*a
89
%{_libdir}/lib%{name}.so
90
%{_mandir}/man3/popt.*
91
92
%files -n %{name}-data -f %{name}.lang
93
%defattr(-,root,root)
94
95
96
%changelog
97
* Thu May 05 2011 Oden Eriksson <oeriksson@mandriva.com> 1:1.16-2mdv2011.0
98
+ Revision: 667804
99
- mass rebuild
100
101
  + Per Øyvind Karlsen <peroyvind@mandriva.org>
102
    - ship CHANGES with docs
103
104
* Mon Dec 13 2010 Per Øyvind Karlsen <peroyvind@mandriva.org> 1:1.16-1mdv2011.0
105
+ Revision: 620656
106
- new release: 1.16
107
- only install dynamic library under /%%{_lib}, keep the rest in %%{_libdir}
108
109
* Fri Dec 03 2010 Oden Eriksson <oeriksson@mandriva.com> 1:1.15-10mdv2011.0
110
+ Revision: 607190
111
- rebuild
112
113
* Tue Feb 16 2010 Funda Wang <fwang@mandriva.org> 1:1.15-9mdv2010.1
114
+ Revision: 506724
115
- hard require libpackage release to prevent inexistent target
116
117
* Tue Feb 16 2010 Frederic Crozat <fcrozat@mandriva.com> 1:1.15-8mdv2010.1
118
+ Revision: 506600
119
- Move library to /lib(64), fixes Mdv bug #57649 (done in Fedora since 2007)
120
121
* Wed Sep 02 2009 Christophe Fergeau <cfergeau@mandriva.com> 1:1.15-7mdv2010.0
122
+ Revision: 425086
123
- rebuild
124
125
* Sun Jun 28 2009 Tomasz Pawel Gajc <tpg@mandriva.org> 1:1.15-6mdv2010.0
126
+ Revision: 390234
127
- disable rpath
128
- fix muxture of tabs and spaces
129
130
* Fri Jun 26 2009 Christophe Fergeau <cfergeau@mandriva.com> 1:1.15-5mdv2010.0
131
+ Revision: 389422
132
- add missing Provides: in devel package
133
134
* Thu Jun 25 2009 Christophe Fergeau <cfergeau@mandriva.com> 1:1.15-4mdv2010.0
135
+ Revision: 389007
136
- Add missing provides (neeeded by drakconf)
137
138
* Wed Jun 24 2009 Funda Wang <fwang@mandriva.org> 1:1.15-3mdv2010.0
139
+ Revision: 388832
140
- fix requires on epoch
141
142
* Wed Jun 24 2009 Christophe Fergeau <cfergeau@mandriva.com> 1:1.15-2mdv2010.0
143
+ Revision: 388822
144
- Set epoch since libpopt0 from rpm 4.4 had an epoch set to 1
145
146
* Mon Jun 15 2009 Christophe Fergeau <cfergeau@mandriva.com> 1.15-1mdv2010.0
147
+ Revision: 386017
148
- import popt
149
150

Comments