]> git.pld-linux.org Git - packages/Xlt.git/blob - Xlt.spec
- perl -pi -e "s/^automake -a -c$/automake -a -c -f/"
[packages/Xlt.git] / Xlt.spec
1
2 %define srcname LessTifExtensions
3
4 Summary:        The LessTif extension library
5 Summary(pl):    Biblioteka rozszerzeñ do LessTifa
6 Name:           Xlt
7 Version:        9.0.9
8 Release:        2
9 License:        GPL
10 Group:          X11/Libraries
11 Source0:        ftp://ftp.lesstif.org/pub/hungry/lesstif/srcdist/%{name}-%{version}.tar.gz
12 BuildRequires:  lesstif-devel
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  libtool
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _prefix         /usr/X11R6
19 %define         _mandir         %{_prefix}/man
20
21 %description
22 The LessTif extension library. This consists of several widgets and
23 convience functions to make LessTif, or if you must Motif, programming
24 more enjoyable.
25
26 %description -l pl
27 Biblioteka rozszerzeñ do LessTifa. Zawiera trochê widgetów i funkcji
28 ¿eby nieco uprzyjemniæ programowanie z u¿yciem LessTifa czy Motifa.
29
30 %package devel
31 Summary:        Xlt header files and development documentation
32 Summary(pl):    Pliki nag³ówkowe i dokumentacja Xlt
33 Group:          X11/Development/Libraries
34 Requires:       %{name} = %{version}
35
36 %description devel
37 Xlt header files and development documentation.
38
39 %description devel -l pl
40 Pliki nag³ówkowe i dokumentacja programisty do Xlt.
41
42 %package static
43 Summary:        Xlt static library
44 Summary(pl):    Biblioteka statyczna Xlt
45 Group:          X11/Development/Libraries
46 Requires:       %{name}-devel = %{version}
47
48 %description static
49 Xlt static library.
50
51 %description static -l pl
52 Biblioteka statyczna Xlt.
53
54 %prep
55 %setup -q -n %{srcname}-%{version}
56
57 %build
58 libtoolize -c -f
59 aclocal
60 autoconf
61 automake -a -c -f
62 %configure \
63         --enable-static \
64         --enable-shared \
65         --enable-build-12 \
66         --enable-default-12 \
67         --disable-build-20 \
68         --disable-default-20
69
70 %{__make} X_EXTRA_LIBS="-lXm"
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT%{_aclocaldir}
75
76 %{__make} install \
77         DESTDIR=$RPM_BUILD_ROOT
78
79 # workaround - configure decides not to install *.m4 if aclocaldir is not writable
80 install ac_find_*.m4 $RPM_BUILD_ROOT%{_aclocaldir}
81
82 gzip -9nf AUTHORS ChangeLog README
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %files
91 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_libdir}/libXlt.so.*.*
93
94 %files devel
95 %defattr(644,root,root,755)
96 %doc {AUTHORS,ChangeLog,README}.gz
97 %attr(755,root,root) %{_libdir}/libXlt.so
98 %attr(755,root,root) %{_libdir}/libXlt.la
99 %{_includedir}/Xlt
100 %{_aclocaldir}/ac_find_xlt.m4
101 %{_aclocaldir}/ac_find_xpm.m4
102 %{_mandir}/man3/*
103
104 %files static
105 %defattr(644,root,root,755)
106 %attr(644,root,root) %{_libdir}/libXlt.a
This page took 0.074612 seconds and 3 git commands to generate.