]> git.pld-linux.org Git - SPECS.git/blob - pxlib.spec
SPECS updated Sat 31 Jul 20:27:02 CEST 2021
[SPECS.git] / pxlib.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        A library to read Paradox DB files
6 Summary(pl.UTF-8):      Biblioteka do odczytu plików baz danych Paradox DB
7 Name:           pxlib
8 Version:        0.6.8
9 Release:        1
10 Epoch:          0
11 License:        GPL v2
12 Group:          Libraries
13 Source0:        http://downloads.sourceforge.net/pxlib/%{name}-%{version}.tar.gz
14 # Source0-md5:  220578ab27348613a35a55902c3999f3
15 Patch0:         %{name}-stderr.patch
16 Patch1:         %{name}-pc.patch
17 URL:            http://pxlib.sourceforge.net/
18 BuildRequires:  autoconf >= 2.50
19 BuildRequires:  automake
20 BuildRequires:  docbook-to-man
21 BuildRequires:  docbook-utils
22 BuildRequires:  gettext-tools
23 BuildRequires:  intltool
24 BuildRequires:  libgsf-devel >= 1.14.1
25 BuildRequires:  libtool
26 BuildRequires:  perl-XML-Parser
27 BuildRequires:  pkgconfig
28 BuildRequires:  sed >= 4.0
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 pxlib is a simply and still small C library to read Paradox DB files.
33 It supports all versions starting from 3.0. It currently has a very
34 limited set of functions like to open a DB file, read its header and
35 read every single record.
36
37 %description -l pl.UTF-8
38 pxlib jest prostą i ciągle małą biblioteką do odczytu plików baz
39 danych Paradox DB. Obsługuje wszystkie wersje począwszy od 3.0.
40 Aktualnie ma bardzo ograniczony zbiór funkcji, takich jak otworzenie
41 pliku DB, odczyt nagłówka i odczyt pojedynczego rekordu.
42
43 %package devel
44 Summary:        Header files for pxlib
45 Summary(pl.UTF-8):      Pliki nagłówkowe pxlib
46 Group:          Development/Libraries
47 Requires:       %{name} = %{epoch}:%{version}-%{release}
48 Requires:       libgsf-devel >= 1.14.1
49
50 %description devel
51 Header files for pxlib.
52
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe pxlib.
55
56 %package static
57 Summary:        Static pxlib library
58 Summary(pl.UTF-8):      Statyczna biblioteka pxlib
59 Group:          Development/Libraries
60 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
61
62 %description static
63 Static pxlib library.
64
65 %description static -l pl.UTF-8
66 Statyczna biblioteka pxlib.
67
68 %prep
69 %setup -q
70 %patch0 -p1
71 %patch1 -p1
72
73 %{__sed} -i -e '/RECODE_LIBDIR=/ s,/lib$,/%{_lib},' configure.ac
74
75 %build
76 #{__gettextize}
77 %{__intltoolize}
78 %{__libtoolize}
79 %{__aclocal}
80 %{__autoconf}
81 %{__autoheader}
82 %{__automake}
83 %configure \
84         %{!?with_static_libs:--disable-static} \
85         --with-gsf
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 # obsoleted by pkg-config
95 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpx.la
96
97 %find_lang %{name}
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files -f %{name}.lang
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog README doc/*.txt
108 %attr(755,root,root) %{_libdir}/libpx.so.*.*.*
109 %attr(755,root,root) %ghost %{_libdir}/libpx.so.0
110
111 %files devel
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/libpx.so
114 %{_includedir}/paradox*.h
115 %{_includedir}/pxversion.h
116 %{_pkgconfigdir}/pxlib.pc
117 %{_mandir}/man3/PX_*.3*
118 %{_mandir}/man3/pxlib.3*
119
120 %if %{with static_libs}
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/libpx.a
124 %endif
This page took 0.520214 seconds and 3 git commands to generate.