]> git.pld-linux.org Git - packages/libast.git/blob - libast.spec
- updated to 0.8
[packages/libast.git] / libast.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        Library of Assorted Spiffy Things
6 Summary(pl.UTF-8):      Biblioteka AST (Assorted Spiffy Things)
7 Name:           libast
8 Version:        0.8
9 Release:        1
10 License:        BSD
11 Group:          Libraries
12 #Source0Download: https://github.com/mej/libast/tags
13 Source0:        https://github.com/mej/libast/archive/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5:  0e625e406fe6ddd0e053baf719373f55
15 Patch0:         %{name}-link.patch
16 URL:            http://www.eterm.org/
17 BuildRequires:  automake
18 BuildRequires:  curl-devel >= 7.9.0
19 BuildRequires:  imlib2-devel
20 BuildRequires:  pcre-devel
21 BuildRequires:  xorg-lib-libX11-devel
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 LibAST is the Library of Assorted Spiffy Things. It contains various
26 handy routines and drop-in substitutes for some good-but-non-portable
27 functions. It currently has a built-in memory tracking subsystem as
28 well as some debugging aids and other similar tools.
29
30 %description -l pl.UTF-8
31 LibAST to biblioteka Assorted Spiffy Things. Zawiera różne podręczne
32 procedury i zastępniki niektórych dobrych, ale nie przenośnych
33 funkcji. Aktualnie ma wbudowany system śledzenia pamięci, trochę
34 pomocy odpluskwiających i parę podobnych narzędzi.
35
36 %package devel
37 Summary:        Library of Assorted Spiffy Things header files
38 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki AST
39 Group:          X11/Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41 Requires:       imlib2-devel
42 Requires:       pcre-devel
43
44 %description devel
45 Header files and development documentation for libast.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe i dokumentacja programisty do libast.
49
50 %package static
51 Summary:        Libast static libraries
52 Summary(pl.UTF-8):      Biblioteki statyczne libast
53 Group:          X11/Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Libast static libraries.
58
59 %description static -l pl.UTF-8
60 Biblioteki statyczne libast.
61
62 %prep
63 %setup -q
64 %patch0 -p1
65
66 %build
67 %{__libtoolize}
68 %{__aclocal}
69 %{__autoconf}
70 %{__autoheader}
71 %{__automake}
72 %configure \
73         %{!?with_static_libs:--disable-static}
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 # broken install
83 %{__mv} $RPM_BUILD_ROOT%{_includedir}/{sysdefs,types}.h $RPM_BUILD_ROOT%{_includedir}/libast
84
85 # obsoleted by libast-config
86 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libast.la
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post   -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
93
94 %files
95 %defattr(644,root,root,755)
96 %doc ChangeLog README
97 %attr(755,root,root) %{_libdir}/libast.so.*.*.*
98 %attr(755,root,root) %ghost %{_libdir}/libast.so.2
99
100 %files devel
101 %defattr(644,root,root,755)
102 %doc DESIGN
103 %attr(755,root,root) %{_bindir}/libast-config
104 %attr(755,root,root) %{_libdir}/libast.so
105 %{_includedir}/libast
106 %{_includedir}/libast.h
107 %{_aclocaldir}/libast.m4
108
109 %if %{with static_libs}
110 %files static
111 %defattr(644,root,root,755)
112 %{_libdir}/libast.a
113 %endif
This page took 0.100342 seconds and 3 git commands to generate.