]> git.pld-linux.org Git - projects/template-specs.git/blob - lib.spec
- utf8
[projects/template-specs.git] / lib.spec
1 # Conditional build:
2 %bcond_without  apidocs         # do not build and package API docs
3 #
4 Summary:        -
5 Summary(pl.UTF-8):      -
6 Name:           -
7 Version:        -
8 Release:        -
9 License:        - (enter GPL/LGPL/BSD/BSD-like/other license name here)
10 Group:          Libraries
11 Source0:        %{name}-%{version}.tar.gz
12 # Source0-md5:  -
13 #Patch0:                %{name}-what.patch
14 URL:            -
15 BuildRequires:  -
16 Requires:       -
17 Requires(pre,post):     -
18 Requires(preun):        -
19 Requires(postun):       -
20 Provides:       -
21 Obsoletes:      -
22 Conflicts:      -
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26
27 %description -l pl.UTF-8
28
29 %package devel
30 Summary:        Header files for FOO library
31 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki FOO
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}
34
35 %description devel
36 Header files for FOO library.
37
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe biblioteki FOO.
40
41 %package static
42 Summary:        Static FOO library
43 Summary(pl.UTF-8):      Statyczna biblioteka FOO
44 Group:          Development/Libraries
45 Requires:       %{name}-devel = %{version}-%{release}
46
47 %description static
48 Static FOO library.
49
50 %description static -l pl.UTF-8
51 Statyczna biblioteka FOO.
52
53 %package apidocs
54 Summary:        FOO API documentation
55 Summary(pl.UTF-8):      Dokumentacja API biblioteki FOO
56 Group:          Documentation
57
58 %description apidocs
59 API and internal documentation for FOO library.
60
61 %prep
62 %setup -q
63 #%patch0 -p1
64
65 %build
66 # if ac/am/lt/* rebuilding is necessary, do it in this order and add
67 # appropriate BuildRequires
68 #%{__libtoolize}
69 #%{__aclocal}
70 #%{__autoconf}
71 #%{__autoheader}
72 #%{__automake}
73 %configure
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 # create directories if necessary
79 #install -d $RPM_BUILD_ROOT
80
81 %{__make} install \
82         DESTDIR=$RPM_BUILD_ROOT
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 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
93 %attr(755,root,root) %{_bindir}/*
94 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
95 %{_datadir}/%{name}
96
97 %files devel
98 %defattr(644,root,root,755)
99 %doc devel-doc/*
100 %{_libdir}/lib*.so
101 %{_libdir}/lib*.la
102 %{_includedir}/foo
103 %{_aclocaldir}/*.m4
104 %{_pkgconfigdir}/*.pc
105
106 %files static
107 %defattr(644,root,root,755)
108 %{_libdir}/lib*.a
109
110 %files apidocs
111 %defattr(644,root,root,755)
112 %doc apidocs/*
This page took 0.028719 seconds and 4 git commands to generate.