Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
change SPEC_-var to lowercase prepends
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Esser committed Jun 14, 2012
1 parent 7855426 commit 6df681d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions RPMINFO.skel
Expand Up @@ -2,11 +2,11 @@
#####
##### THIS IS THE INFO REQUIRED FOR SPEC-FILE GENERATION

SET( SPEC_URL "http://github.com/libyui/" ) # the URL of the project
SET( SPEC_Url "http://github.com/libyui/" ) # the URL of the project

SET( SPEC_SUMMARY "" ) # some brief summary
SET( SPEC_Summary "" ) # some brief summary

SET( SPEC_DESCRIPTION "\n" ) # the description to be used, end each line with "\n" for line-breaks
SET( SPEC_Description "\n" ) # the description to be used, end each line with "\n" for line-breaks

SET( SPEC_BuildRequires "cmake >= 2.8" ) # the BuildRequires every single pkg wrapped with "" and speparated with spaces

Expand Down
6 changes: 3 additions & 3 deletions macros.cmake
Expand Up @@ -339,9 +339,9 @@ ENDMACRO( GEN_FILES )
MACRO( PREP_SPEC_FILES )

IF( PLUGINNAME )
SET( SPEC_LIBDIR "/${BASELIB}/${PROGSUBDIR_UC}" )
STRING( REGEX REPLACE "^/+" "/" SPEC_LIBDIR "${SPEC_LIBDIR}" )
STRING( REGEX REPLACE "/+$" "" SPEC_LIBDIR "${SPEC_LIBDIR}" )
SET( SPEC_Libdir "/${BASELIB}/${PROGSUBDIR_UC}" )
STRING( REGEX REPLACE "^/+" "/" SPEC_Libdir "${SPEC_Libdir}" )
STRING( REGEX REPLACE "/+$" "" SPEC_Libdir "${SPEC_Libdir}" )
ENDIF( PLUGINNAME )

FOREACH( p "BuildRequires" "Conflicts" "Provides" "Obsoletes" "DEVEL_Requires" "DEVEL_Provides" )
Expand Down
4 changes: 2 additions & 2 deletions resource/template-doc.spec.in
Expand Up @@ -20,11 +20,11 @@ BuildRequires: texlive-latex

Obsoletes: @PROJECTNAME@-doc < %{version}

URL: @SPEC_URL@
URL: @SPEC_Url@
Summary: @PROJECTNAME_UC@ documentation

%description
@SPEC_DESCRIPTION@
@SPEC_Description@

This package provides the documentation. (HTML & PDF)

Expand Down
18 changes: 9 additions & 9 deletions resource/template.spec.in
Expand Up @@ -11,11 +11,11 @@ Source: @PROJECTNAME@-%{version}.tar.bz2
Group: System/Libraries

@BuildRequires@
URL: @SPEC_URL@
Summary: @SPEC_SUMMARY@
URL: @SPEC_Url@
Summary: @SPEC_Summary@

%description
@SPEC_DESCRIPTION@
@SPEC_Description@

%package -n @PROJECTNAME@@SONAME_MAJOR@

Expand All @@ -24,11 +24,11 @@ Group: System/Libraries
@Conflicts@
@Provides@
@Obsoletes@
URL: @SPEC_URL@
Summary: @PROJECTNAME_UC@ - @SPEC_SUMMARY@
URL: @SPEC_Url@
Summary: @PROJECTNAME_UC@ - @SPEC_Summary@

%description -n @PROJECTNAME@@SONAME_MAJOR@
@SPEC_DESCRIPTION@
@SPEC_Description@


%package devel
Expand All @@ -37,11 +37,11 @@ Group: Development/Languages/C and C++

@DEVEL_Requires@
@DEVEL_Provides@
URL: @SPEC_URL@
URL: @SPEC_Url@
Summary: @PROJECTNAME_UC@ header files

%description devel
@SPEC_DESCRIPTION@
@SPEC_Description@

This can be used independently of YaST for generic (C++) applications.
This package has very few dependencies.
Expand Down Expand Up @@ -91,7 +91,7 @@ rm -rf "$RPM_BUILD_ROOT"
%files -n @PROJECTNAME@@SONAME_MAJOR@
%defattr(-,root,root)

%{_libdir}@SPEC_LIBDIR@/lib*.so.*
%{_libdir}@SPEC_Libdir@/lib*.so.*

%files devel
%defattr(-,root,root)
Expand Down

0 comments on commit 6df681d

Please sign in to comment.