- adviced by author (does not work...)
[packages/dclib.git] / dclib.spec
1 %define         _beta           beta10
2 %define         _release        1
3
4 Summary:        dclib - libraries for Direct Connect client.
5 Summary(pl):    dclib - biblioteki dla klienta Direct Connecta.
6 Name:           dclib
7 Version:        0.1
8 Release:        %{_beta}.%{_release}
9 License:        GPL v2
10 Group:          X11/Libraries
11 Source0:        http://dc.ketelhot.de/files/dcgui/unstable/source/%{name}-%{version}%{_beta}.tar.bz2
12 Patch0:         %{name}-xml_ugly_fix.patch
13 URL:            http://dc.ketelhot.de/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  libtool
17 BuildRequires:  libxml2-devel > 2.0.0
18 BuildRequires:  qt-devel >= 3.0.5
19 Provides:       %{name} = %{version}%{_beta}
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _prefix         /usr/X11R6
23
24 %description
25 Libraries for Direct Connect client.
26
27 %description -l pl
28 Biblioteki dla klienta Direct Connecta.
29
30 %package devel
31 Summary:        Developement files for dclib
32 Summary(pl):    Pliki nag³ówkowe dla dclib
33 Group:          X11/Development/Libraries
34 Requires:       %{name} = %{version}%{_beta}
35 Provides:       %{name}-devel = %{version}%{_beta}
36
37 %description devel
38 The header files are only needed for development of programs using the
39 dclib.
40
41 %description devel -l pl
42 Pliki nag³ówkowe potrzebne tylko przy rozwijaniu programów z u¿yciem
43 dclib.
44
45 %package static
46 Summary:        Static libraries dclib
47 Summary(pl):    Statyczne biblioteki dclib
48 Group:          X11/Development/Libraries
49 Requires:       %{name}-devel = %{version}%{_beta}
50 Provides:       %{name}-static = %{version}%{_beta}
51
52 %description static
53 Static dclib libraries.
54
55 %description static -l pl
56 Statyczne biblioteki dclib.
57
58 %prep
59 %setup -q -n %{name}-%{version}%{_beta}
60 %patch0 -p1
61
62 %build
63 cp -f /usr/share/automake/config.* .
64 %{__make} -f Makefile.dist
65 %configure
66
67 %{__make}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71
72 %{__make} DESTDIR=$RPM_BUILD_ROOT install
73
74 %post   -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %attr(755,root,root) %{_libdir}/*.so.*.*
83
84 %files devel
85 %defattr(644,root,root,755)
86 %doc README NEWS TODO AUTHORS
87 %attr(755,root,root) %{_libdir}/*.la
88 %attr(755,root,root) %{_libdir}/*.so
89 %attr(755,root,root) %{_includedir}/%{name}/*.h
90
91 %files static
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/*.a
This page took 0.034749 seconds and 3 git commands to generate.