summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-06-12 07:57:26 -0400
committerAnas Nashif <anas.nashif@intel.com>2013-06-12 07:57:26 -0400
commita3c78e05e929c6920bb404b03b347638d95c06a4 (patch)
tree27b8b9885d72b0cec56a1ab486e7bd91d16be9ca
parent82f4df7173d4ca4479e072c5c9f7506f0dfb366a (diff)
downloadlibrpm-tizen-a3c78e05e929c6920bb404b03b347638d95c06a4.tar.gz
librpm-tizen-a3c78e05e929c6920bb404b03b347638d95c06a4.tar.bz2
librpm-tizen-a3c78e05e929c6920bb404b03b347638d95c06a4.zip
update macros from project conf
-rw-r--r--packaging/rpm-tizen_macros33
1 files changed, 33 insertions, 0 deletions
diff --git a/packaging/rpm-tizen_macros b/packaging/rpm-tizen_macros
index 289bc0c4f..09b622560 100644
--- a/packaging/rpm-tizen_macros
+++ b/packaging/rpm-tizen_macros
@@ -4,6 +4,8 @@
%_sysconfdir /etc
%_localstatedir /var
%_defaultdocdir %{_usr}/share/doc/packages
+%_unitdir_user /usr/lib/systemd/user
+%_unitdir /usr/lib/systemd/system
# package build macros
# %make_install make install DESTDIR=%{?buildroot}
@@ -268,3 +270,34 @@ rm -rf %{?buildroot:%{buildroot}} \
find %{?buildroot:%{buildroot}} -regex ".*/man/man./.*\.[0-9]" | xargs rm -f -- \
find %{?buildroot:%{buildroot}} -regex ".*/man/../man./.*\.[0-9]" | xargs rm -f -- \
find %{?buildroot:%{buildroot}} -regex ".*/man/man./.*\.[0-9]pm" | xargs rm -f --
+
+
+%install_service() \
+mkdir -p %{buildroot}/%{_unitdir}/%{1} \
+ln -s ../%{2} %{buildroot}/%{_unitdir}/%{1}/%{2} \
+%{nil}
+
+
+%_fontsdir %{_usr}/share/fonts
+%_ttfontsdir %{_fontsdir}/truetype
+%_miscfontsdir %{_fontsdir}/misc
+%_fontsconfdir %{_sysconfdir}/fonts
+%_fontsconfddir %{_fontsconfdir}/conf.d
+%_fontsconfavaildir %{_datadir}/%{name}/conf.avail
+
+%devel_package \
+%package devel \
+Summary: Development files for package %{name}\
+Group: Development\
+%description devel\
+This package provides header files and other developer releated files for package %{name}.\
+%files devel \
+%{_includedir}/*\
+%{_libdir}/pkgconfig/*.pc\
+%{_libdir}/*.so\
+%{nil}
+
+%devel_desc This package contains all necessary include files and libraries needed \
+to develop applications that require %{name}.\
+%{nil}
+