]> git.pld-linux.org Git - packages/codeblocks.git/commitdiff
- moved plugins from %%{_datadir}/... to %{_libdir}/codeblocks/plugins
authortwittner <twittner@pld-linux.org>
Wed, 7 Dec 2005 21:24:46 +0000 (21:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  (-fhs.patch)
- added %%{_pkgconfigdir}/codeblocks.pc (I suppose it is for developing
  plugins?)
- rel. 0.3

Changed files:
    codeblocks.spec -> 1.6

codeblocks.spec

index e51ce24499b570a01b1668fea836a9b1cdecd2b7..5185d23b4308041109e61c7952111539cc3a39b3 100644 (file)
@@ -1,18 +1,19 @@
 #
 # 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
@@ -22,6 +23,8 @@ BuildRequires:        wxGTK2-devel >= 2.6.0
 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,
@@ -109,8 +112,10 @@ Cechy interfejsu:
 %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@libdir = \$(pkgdatadir)/plugins@libdir = %{_pluginsdir}@" '{}' ';'
 
 %build
 %{__libtoolize}
@@ -149,6 +154,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_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
This page took 0.077507 seconds and 4 git commands to generate.