]> git.pld-linux.org Git - SPECS.git/blob - libgtextutils.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libgtextutils.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        Gordon's text-utility classes
6 #Summary(pl.UTF-8):     -
7 Name:           libgtextutils
8 Version:        0.6
9 Release:        1
10 License:        AGPL v3
11 Group:          Libraries
12 Source0:        http://hannonlab.cshl.edu/fastx_toolkit/%{name}-%{version}.tar.bz2
13 # Source0-md5:  d6969aa0d31cc934e1fedf3fe3d0dc63
14 URL:            http://hannonlab.cshl.edu/fastx_toolkit/index.html
15 BuildRequires:  libstdc++-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Gordon's text-utility classes.
20
21 #%description -l pl.UTF-8
22
23 %package devel
24 Summary:        Header files for libgtextutils library
25 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libgtextutils
26 Group:          Development/Libraries
27 Requires:       %{name} = %{version}-%{release}
28
29 %description devel
30 Header files for libgtextutils library.
31
32 %description devel -l pl.UTF-8
33 Pliki nagłówkowe biblioteki libgtextutils.
34
35 %package static
36 Summary:        Static libgtextutils library
37 Summary(pl.UTF-8):      Statyczna biblioteka libgtextutils
38 Group:          Development/Libraries
39 Requires:       %{name}-devel = %{version}-%{release}
40
41 %description static
42 Static libgtextutils library.
43
44 %description static -l pl.UTF-8
45 Statyczna biblioteka libgtextutils.
46
47 %prep
48 %setup -q
49
50 %build
51 %configure \
52         %{!?with_static_libs:--disable-static} \
53         --disable-wall
54
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 # remove .la pollution
64 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post   -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
71
72 %files
73 %defattr(644,root,root,755)
74 %doc AUTHORS COPYING NEWS README THANKS
75 %attr(755,root,root) %{_libdir}/libgtextutils-0.6.so.*.*.*
76 %attr(755,root,root) %ghost %{_libdir}/libgtextutils-0.6.so.0
77
78 %files devel
79 %defattr(644,root,root,755)
80 %attr(755,root,root) %{_libdir}/libgtextutils.so
81 %{_includedir}/gtextutils
82 %{_pkgconfigdir}/gtextutils.pc
83
84 %if %{with static_libs}
85 %files static
86 %defattr(644,root,root,755)
87 %{_libdir}/libgtextutils.a
88 %endif
This page took 0.114367 seconds and 3 git commands to generate.