2011-04-26 21:39:44 +02:00
|
|
|
Name: @pck_name@
|
|
|
|
Version: @pck_version@
|
|
|
|
Release: @spec_first_release@@DISTRO_rpm@
|
|
|
|
Summary: ...
|
2011-12-18 15:24:59 +01:00
|
|
|
@if:pck_library
|
|
|
|
Group: ...
|
|
|
|
@else:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
Group: System/Libraries
|
2011-12-18 15:24:59 +01:00
|
|
|
@fi:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
Vendor: @VENDOR@
|
|
|
|
Distribution: @DISTRO@
|
|
|
|
Packager: @packager_fullname@ <@packager_email@>
|
|
|
|
URL: ...
|
|
|
|
Source: ...
|
|
|
|
#Patch0: %{name}-<pck-version>-<patch-description>.patch
|
|
|
|
License: ...
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## note: run 'autospec -u -a6 @pck_name@' to get the list of build requirements.
|
|
|
|
## AUTOBUILDREQ-END
|
2012-03-25 23:46:01 +02:00
|
|
|
@if:buildrequires_buildtool
|
|
|
|
BuildRequires: @build_tool@
|
|
|
|
@fi:buildrequires_buildtool
|
2011-12-28 23:46:27 +01:00
|
|
|
@if:pck_library
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
@fi:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
@if:infopages
|
|
|
|
Requires(post): %{__install_info}
|
|
|
|
@fi:infopages
|
|
|
|
BuildRoot: @rpm_default_buildroot@
|
|
|
|
|
|
|
|
%description
|
|
|
|
...
|
|
|
|
|
2011-12-18 15:24:59 +01:00
|
|
|
@if:pck_library
|
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
@fi:pck_library
|
|
|
|
|
|
|
|
@if:pck_devel
|
|
|
|
@if:pck_library
|
|
|
|
%package -n lib%{name}-devel
|
|
|
|
@else:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
%package devel
|
2011-12-18 15:24:59 +01:00
|
|
|
@fi:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
Group: Development/Libraries
|
2011-12-18 15:24:59 +01:00
|
|
|
Summary: Development files for %{name}
|
|
|
|
@if:pck_library
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
@else:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2011-12-18 15:24:59 +01:00
|
|
|
@fi:pck_library
|
2012-01-28 21:19:13 +01:00
|
|
|
## note: you can add this requirement if .pc files are provided by this package
|
2012-02-15 20:40:57 +01:00
|
|
|
#Requires: pkg-config
|
2011-04-26 21:39:44 +02:00
|
|
|
|
2011-12-18 15:24:59 +01:00
|
|
|
@if:pck_library
|
|
|
|
%description -n lib%{name}-devel
|
|
|
|
@else:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
%description devel
|
2011-12-18 15:24:59 +01:00
|
|
|
@fi:pck_library
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
@fi:pck_devel
|
2011-04-26 21:39:44 +02:00
|
|
|
|
|
|
|
@if:pck_tools
|
|
|
|
%package tools
|
|
|
|
Group: Applications/...
|
|
|
|
Summary: Utility applications for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description tools
|
2011-12-18 15:24:59 +01:00
|
|
|
This package contains utility applications for %{name}.
|
2011-04-26 21:39:44 +02:00
|
|
|
@fi:pck_tools
|
|
|
|
|
|
|
|
@if:pck_apidocs
|
|
|
|
%package apidocs
|
|
|
|
Group: Documentation
|
|
|
|
Summary: %{name} API documentation
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: gtk-doc
|
|
|
|
|
|
|
|
%description apidocs
|
|
|
|
This package includes the %{name} API documentation.
|
|
|
|
@fi:pck_apidocs
|
|
|
|
|
2012-04-13 22:45:47 +02:00
|
|
|
@if:debug_package
|
|
|
|
%debug_package
|
|
|
|
@fi:debug_package
|
|
|
|
|
2011-04-26 21:39:44 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
@if:pck_apidocs
|
|
|
|
@configure@ --enable-gtk-doc
|
|
|
|
@else:pck_apidocs
|
|
|
|
@configure@
|
|
|
|
@fi:pck_apidocs
|
|
|
|
@make@
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
@makeinstall@
|
|
|
|
|
|
|
|
@if:i18n
|
2012-04-10 23:42:12 +02:00
|
|
|
%find_lang %{name} || touch %{name}.lang
|
2011-04-26 21:39:44 +02:00
|
|
|
@fi:i18n
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2011-12-18 15:24:59 +01:00
|
|
|
@if:pck_library
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
@else:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
2011-12-18 15:24:59 +01:00
|
|
|
@fi:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
|
|
|
|
@if:infopages
|
2011-12-18 15:24:59 +01:00
|
|
|
@if:pck_library
|
|
|
|
%post -n lib%{name}-devel
|
|
|
|
@else:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
%post devel
|
2011-12-18 15:24:59 +01:00
|
|
|
@fi:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
## modify the infopage name as required
|
|
|
|
%install_info %{name}.info
|
|
|
|
exit 0
|
|
|
|
|
2011-12-18 15:24:59 +01:00
|
|
|
@if:pck_library
|
|
|
|
%preun -n lib%{name}-devel
|
|
|
|
@else:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
%preun devel
|
2011-12-18 15:24:59 +01:00
|
|
|
@fi:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
## modify the infopage name as required
|
|
|
|
%uninstall_info %{name}.info
|
|
|
|
exit 0
|
|
|
|
@fi:infopages
|
|
|
|
|
|
|
|
@if:i18n
|
|
|
|
%files -f %{name}.lang
|
|
|
|
@else:i18n
|
|
|
|
%files
|
|
|
|
@fi:i18n
|
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: this list is just an example; modify as required
|
2011-12-18 15:24:59 +01:00
|
|
|
@if:pck_library
|
2012-01-22 00:45:22 +01:00
|
|
|
# %{_bindir}/%{name}
|
2011-12-18 15:24:59 +01:00
|
|
|
@else:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
# %{_libdir}/*.so.*
|
2011-12-18 15:24:59 +01:00
|
|
|
@fi:pck_library
|
2012-01-22 00:45:22 +01:00
|
|
|
# %{_mandir}/man1/%{name}.*
|
2011-04-26 21:39:44 +02:00
|
|
|
@standard_docs@
|
|
|
|
|
2011-12-18 15:24:59 +01:00
|
|
|
@if:pck_library
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: this list is just an example; modify as required
|
|
|
|
# %{_libdir}/*.so.*
|
|
|
|
@fi:pck_library
|
|
|
|
|
|
|
|
@if:pck_devel
|
|
|
|
@if:pck_library
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
@else:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
%files devel
|
2011-12-18 15:24:59 +01:00
|
|
|
@fi:pck_library
|
2011-04-26 21:39:44 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: this list is just an example; modify as required
|
|
|
|
# %{_bindir}/%{name}-config
|
|
|
|
# %{_datadir}/aclocal/*.m4
|
|
|
|
# %{_includedir}/*.h
|
|
|
|
# %{_includedir}/%{name}
|
|
|
|
# %{_libdir}/*.a
|
|
|
|
# %{_libdir}/*.la
|
|
|
|
# %{_libdir}/*.so
|
|
|
|
# %{_libdir}/pkgconfig/*.pc
|
2012-01-22 00:45:22 +01:00
|
|
|
# %{_mandir}/man1/%{name}-config.*
|
2011-04-26 21:39:44 +02:00
|
|
|
# %{_mandir}/man3/*
|
|
|
|
@if:infopages
|
|
|
|
# %{_infodir}/*.info.*
|
|
|
|
@fi:infopages
|
2011-12-16 22:00:51 +01:00
|
|
|
@standard_docs_devel@
|
2011-12-18 15:24:59 +01:00
|
|
|
@fi:pck_devel
|
2011-04-26 21:39:44 +02:00
|
|
|
|
|
|
|
@if:pck_tools
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: list all the binaries but %{name}-config
|
|
|
|
# %{_bindir}/...
|
|
|
|
## note: usually there's a manpages for each tool
|
|
|
|
# %{_mandir}/man1/*
|
|
|
|
@fi:pck_tools
|
|
|
|
|
|
|
|
@if:pck_apidocs
|
|
|
|
%files apidocs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: this list is just an example; modify as required
|
|
|
|
# %{_datadir}/gtk-doc/html/%{name}
|
|
|
|
@fi:pck_apidocs
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* @spec_changelog_date@ @packager_fullname@ <@packager_email@> @pck_version@-@spec_first_release@@DISTRO_rpm@
|
|
|
|
- @spec_changelog_comment@
|