Skip to content

Commit

Permalink
use macros instead of hardcoded paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Esser committed May 12, 2015
1 parent 66211da commit d97365e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions build-tools/rpm/macros.yast
Expand Up @@ -2,7 +2,7 @@
# common RPM macro definitions used by YaST
#

%yast_dir %{_prefix}/share/YaST2
%yast_dir %{_datadir}/YaST2

%yast_ydatadir %{yast_dir}/data
%yast_imagedir %{yast_dir}/images
Expand All @@ -15,28 +15,28 @@
%yast_controldir %{yast_dir}/control
%yast_schemadir %{yast_dir}/schema
%yast_scrconfdir %{yast_dir}/scrconf
%yast_desktopdir %{_prefix}/share/applications/YaST2
%yast_desktopdir %{_datadir}/applications/YaST2

%yast_ybindir %{_prefix}/lib/YaST2/bin
%yast_ystartupdir %{_prefix}/lib/YaST2
%yast_libdir %{_libdir}/YaST2
%yast_plugindir %{yast_libdir}/plugin
%yast_includedir %{_prefix}/include/YaST2
%yast_docdir %{_prefix}/share/doc/packages/%{name}
%yast_logdir /var/log/YaST2
%yast_vardir /var/lib/YaST2
%yast_fillupdir /var/adm/fillup-templates
%yast_includedir %{_includedir}/YaST2
%yast_docdir %{_docdir}/%{name}
%yast_logdir %{_localstatedir}/log/YaST2
%yast_vardir %{_sharedstatedir}/YaST2
%yast_fillupdir %{_localstatedir}/adm/fillup-templates

%yast_execcompdir %{_prefix}/lib/YaST2
%yast_agentdir %{yast_execcompdir}/servers_non_y2

# prepare sources for build
%yast_prep \
%{_prefix}/bin/y2tool y2autoconf \
%{_prefix}/bin/y2tool y2automake \
%{_bindir}/y2tool y2autoconf \
%{_bindir}/y2tool y2automake \
\
# '-Wobsolete' exposes deprecated / obsolete Autotools-macros \
autoreconf \\\
%{_bindir}/autoreconf \\\
--force \\\
--install \\\
-Wobsolete
Expand Down

0 comments on commit d97365e

Please sign in to comment.