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