SPECS: codeblocks.spec - moved plugins from %%{_datadir}/... to %{...

twittner twittner at pld-linux.org
Wed Dec 7 22:24:52 CET 2005


Author: twittner                     Date: Wed Dec  7 21:24:52 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- moved plugins from %%{_datadir}/... to %{_libdir}/codeblocks/plugins
  (-fhs.patch)
- added %%{_pkgconfigdir}/codeblocks.pc (I suppose it is for developing
  plugins?)
- rel. 0.3

---- Files affected:
SPECS:
   codeblocks.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/codeblocks.spec
diff -u SPECS/codeblocks.spec:1.5 SPECS/codeblocks.spec:1.6
--- SPECS/codeblocks.spec:1.5	Wed Dec  7 17:23:41 2005
+++ SPECS/codeblocks.spec	Wed Dec  7 22:24:46 2005
@@ -1,19 +1,20 @@
 # $Revision$, $Date$
 #
 # TODO:
-#		- move plugins to libdir/name/...
+#		- set in settings->editor:end-of-line mode to `LF' as default
 #
 Summary:	An open source, cross platform, free C++ IDE
 Summary(pl):	Wieloplatformowe, darmowe IDE do C++ o otwartych źródłach
 Name:		codeblocks
 Version:	1.0
 %define		_rc	rc2
-Release:	0.%{_rc}.0.2
+Release:	0.%{_rc}.0.3
 License:	GPL
 Group:		Development/Languages
 Source0:	http://dl.sourceforge.net/codeblocks/%{name}-%{version}%{_rc}.tgz
 # Source0-md5:	425c700feb77d22b1b85b1061d2504d9
 Patch0:		%{name}-ac.patch
+Patch1:		%{name}-fhs.patch
 URL:		http://www.codeblocks.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -23,6 +24,8 @@
 BuildRequires:	zip
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define	_pluginsdir %{_libdir}/%{name}/plugins
+
 %description
 Code::Blocks is a free C++ IDE built specifically to meet the most
 demanding needs of its users. It was designed, right from the start,
@@ -110,8 +113,10 @@
 %prep
 %setup -q -n %{name}-%{version}%{_rc}
 %patch0 -p1
+%patch1 -p1
 find . -type f -and -not -name "*.cpp" -and -not -name "*.h" -and -not -name "*.png" -and -not -name "*.bmp" -and -not -name "*.c" -and -not -name "*.cxx" -and -not -name "*.ico" | sed "s/.*/\"\\0\"/" | xargs dos2unix
 chmod a+x acinclude.m4 src/update
+find . -name "Makefile.am" -exec %{__sed} -i "s at libdir = \$(pkgdatadir)/plugins at libdir = %{_pluginsdir}@" '{}' ';'
 
 %build
 %{__libtoolize}
@@ -150,9 +155,9 @@
 %{_datadir}/%{name}/images
 %{_datadir}/%{name}/lexers
 %{_datadir}/%{name}/templates
-# TODO: FHS!
-%dir %{_datadir}/%{name}/plugins
-%attr(755,root,root) %{_datadir}/%{name}/plugins/*.so
+%dir %{_pluginsdir}
+%attr(755,root,root) %{_pluginsdir}/*.so
+%{_pkgconfigdir}/codeblocks.pc
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -160,6 +165,13 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2005/12/07 21:24:46  twittner
+- moved plugins from %%{_datadir}/... to %{_libdir}/codeblocks/plugins
+  (-fhs.patch)
+- added %%{_pkgconfigdir}/codeblocks.pc (I suppose it is for developing
+  plugins?)
+- rel. 0.3
+
 Revision 1.5  2005/12/07 16:23:41  twittner
 - added %%doc files, icon
 - added -ac.patch - C(XX)FLAGS fixes
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/codeblocks.spec?r1=1.5&r2=1.6&f=u




More information about the pld-cvs-commit mailing list