2011-04-26 21:39:44 +02:00
|
|
|
Name: @pck_name@
|
|
|
|
Version: @pck_version@
|
|
|
|
Release: @spec_first_release@@DISTRO_rpm@
|
|
|
|
Summary: ...
|
|
|
|
Group: ...
|
|
|
|
Vendor: @VENDOR@
|
|
|
|
Distribution: @DISTRO@
|
|
|
|
Packager: @packager_fullname@ <@packager_email@>
|
|
|
|
URL: http://www.kde.org
|
|
|
|
Source: ...
|
|
|
|
License: ...
|
2012-05-27 19:59:25 +02:00
|
|
|
BuildRequires: automoc4
|
2011-04-26 21:39:44 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: libqt4-devel
|
2011-12-11 20:36:41 +01:00
|
|
|
BuildRequires: kdelibs-devel
|
2011-04-26 21:39:44 +02:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## note: run 'autospec -u -a6 @pck_name@' to get the list of build requirements.
|
|
|
|
## AUTOBUILDREQ-END
|
2012-05-27 19:59:25 +02:00
|
|
|
Requires: kdelibs%{?_kde4_version: >= %{_kde4_version}}
|
2011-04-26 21:39:44 +02:00
|
|
|
BuildRoot: @rpm_default_buildroot@
|
|
|
|
|
|
|
|
%description
|
|
|
|
...
|
|
|
|
|
2012-04-10 23:42:12 +02:00
|
|
|
## remove the devel blocks if this package does not provide development stuff
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2012-05-27 15:30:53 +02:00
|
|
|
Requires: kdelibs-devel
|
2012-04-10 23:42:12 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
2012-04-13 22:36:57 +02:00
|
|
|
@if:debug_package
|
|
|
|
%debug_package
|
|
|
|
@fi:debug_package
|
|
|
|
|
2011-04-26 21:39:44 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kde4 -d build
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall -C build
|
|
|
|
|
|
|
|
@if:i18n
|
2011-12-11 20:36:41 +01:00
|
|
|
%find_lang %{name} --all-name --with-kde || touch %{name}.lang
|
2011-04-26 21:39:44 +02:00
|
|
|
@fi:i18n
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
|
|
|
@if:shared_libraries
|
|
|
|
## remove the following line if no dynamic libraries are provided by this package
|
|
|
|
/sbin/ldconfig
|
|
|
|
@fi:shared_libraries
|
|
|
|
@if:icons_mimetypes
|
2011-12-29 14:52:47 +01:00
|
|
|
## remove the following line if this package has no hicolor icons
|
2012-01-18 21:23:10 +01:00
|
|
|
touch --no-create %{_kde4_icondir}/hicolor >/dev/null 2>&1
|
2011-12-29 14:52:47 +01:00
|
|
|
## remove the following line if this package has no oxygen icons
|
2012-01-18 21:23:10 +01:00
|
|
|
touch --no-create %{_kde4_icondir}/oxygen >/dev/null 2>&1
|
2011-04-26 21:39:44 +02:00
|
|
|
@fi:icons_mimetypes
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
@if:icons_mimetypes
|
|
|
|
%posttrans
|
|
|
|
@if:shared_libraries
|
|
|
|
## remove the following line if no dynamic libraries are provided by this package
|
|
|
|
/sbin/ldconfig
|
|
|
|
@fi:shared_libraries
|
2012-01-18 21:23:10 +01:00
|
|
|
update-desktop-database -q >/dev/null 2>&1
|
|
|
|
update-mime-database %{_kde4_mimedir} >/dev/null 2>&1
|
2011-12-29 14:52:47 +01:00
|
|
|
## remove the following line if this package has no hicolor icons
|
2012-01-18 21:23:10 +01:00
|
|
|
gtk-update-icon-cache %{_kde4_icondir}/hicolor >/dev/null 2>&1
|
2011-12-29 14:52:47 +01:00
|
|
|
## remove the following line if this package has no oxygen icons
|
2012-01-18 21:23:10 +01:00
|
|
|
gtk-update-icon-cache %{_kde4_icondir}/oxygen >/dev/null 2>&1
|
2011-04-26 21:39:44 +02:00
|
|
|
exit 0
|
|
|
|
@fi:icons_mimetypes
|
|
|
|
|
|
|
|
%postun
|
|
|
|
@if:shared_libraries
|
|
|
|
## remove the following line if no dynamic libraries are provided by this package
|
|
|
|
/sbin/ldconfig
|
|
|
|
@fi:shared_libraries
|
|
|
|
@if:icons_mimetypes
|
|
|
|
if [ $1 -eq 0 ]; then
|
2012-01-18 21:23:10 +01:00
|
|
|
\ update-desktop-database -q >/dev/null 2>&1
|
|
|
|
\ update-mime-database %{_kde4_mimedir} >/dev/null 2>&1
|
2011-12-29 14:52:47 +01:00
|
|
|
## remove the following two lines if this package has no hicolor icons
|
2012-01-18 21:23:10 +01:00
|
|
|
\ touch --no-create %{_kde4_icondir}/hicolor >/dev/null 2>&1
|
|
|
|
\ gtk-update-icon-cache %{_kde4_icondir}/hicolor >/dev/null 2>&1
|
2011-12-29 14:52:47 +01:00
|
|
|
## remove the following two lines if this package has no oxygen icons
|
2012-01-18 21:23:10 +01:00
|
|
|
\ touch --no-create %{_kde4_icondir}/oxygen >/dev/null 2>&1
|
|
|
|
\ gtk-update-icon-cache %{_kde4_icondir}/oxygen >/dev/null 2>&1
|
2011-04-26 21:39:44 +02:00
|
|
|
fi
|
|
|
|
@fi:icons_mimetypes
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
@if:i18n
|
|
|
|
%files -f %{name}.lang
|
|
|
|
@else:i18n
|
|
|
|
%files
|
|
|
|
@fi:i18n
|
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: this list is just an example; modify as required
|
|
|
|
# %{_kde4_bindir}/%{name}
|
|
|
|
# %{_kde4_datadir}/%{name}
|
|
|
|
# %{_kde4_dbusinterfacesdir}/org.kde.*.xml
|
|
|
|
# %{_kde4_kcfgdir}/*.kcfg
|
|
|
|
# %{_kde4_libdir}/kde4/*.so
|
|
|
|
# %{_kde4_icondir}/hicolor/*/*/*.png
|
|
|
|
# %{_kde4_icondir}/oxygen/*/*/*.png
|
2011-12-11 20:36:41 +01:00
|
|
|
# %{_kde4_icondir}/hicolor/scalable/*/*.svgz
|
2011-04-26 21:39:44 +02:00
|
|
|
# %{_kde4_icondir}/oxygen/scalable/*/*.svgz
|
2011-12-11 20:36:41 +01:00
|
|
|
# %{_kde4_xdgappsdir}/%{name}.desktop
|
2011-12-31 17:43:56 +01:00
|
|
|
# %{_kde4_xdgmimedir}/*.xml
|
2011-04-26 21:39:44 +02:00
|
|
|
# %{_kde4_servicesdir}/*.desktop
|
2011-12-31 17:43:56 +01:00
|
|
|
# %{_kde4_servicetypesdir}/*.desktop
|
2011-04-26 21:39:44 +02:00
|
|
|
# %config %{_kde4_configdir}/*.knsrc
|
|
|
|
# %doc %lang(en) %{_kde4_htmldir}/en/%{name}
|
|
|
|
## note: "man3" pages normally goes to devel package if any
|
|
|
|
# %{_mandir}/man?/%{name}.*
|
|
|
|
@standard_docs@
|
2011-12-16 22:00:51 +01:00
|
|
|
## note: eventually add the remaining documents (if any)
|
|
|
|
# @standard_docs_devel@
|
2011-04-26 21:39:44 +02:00
|
|
|
|
2012-04-10 23:42:12 +02:00
|
|
|
## remove this block if the package does not provide development stuff
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: this list is just an example; modify as required
|
|
|
|
# %{_kde4_includedir}/%{name}
|
|
|
|
# %{_kde4_libdir}/*.so
|
|
|
|
|
2011-04-26 21:39:44 +02:00
|
|
|
%changelog
|
|
|
|
* @spec_changelog_date@ @packager_fullname@ <@packager_email@> @pck_version@-@spec_first_release@@DISTRO_rpm@
|
|
|
|
- @spec_changelog_comment@
|