geany-plugin-gdb.spec

Krzysztof Goliński krzysztof.golinski w gmail.com
Czw, 29 Paź 2009, 21:03:08 CET


>> # $Revision: 1.4 $, $Date: 2009/08/31 22:44:21 $
> To chyba nie z tego speca

Tak, mea culpa. Było Copy-paste.

>> BuildRequires:        glib-devel
> Mocno podejrzane

Wymagania są dość dobrze wyszczególnione na stronie projektu i w śród
nich znajduje się glib:
"You will also need its dependency libraries and header files, such as
Pango, Glib and ATK."

Wypada wierzyć twórcom.

>> %configure \
>>        \
>>
> I jeszcze tu doszlifować...

Jest to wersja 0.0.2, dużo zaawansowanych opcji nie posiada, ale coś znalazłem:

# Conditional build:
%bcond_without  nls     # do not use Native Language Support
%bcond_with     gnuld   # assume the C compiler uses GNU ld
...
%configure \
 %{?with_gnuld: --with-gnu-ld} \
 %{!?with_nls: --disable-nls}  \
          --enable-static

Poprawiony spec w załączniku.

Pozdrawiam,
Krzysztof Goliński
-------------- następna część ---------
# $Revision:$, $Date:$
# Conditional build:
%bcond_without	nls	# do not use Native Language Support
%bcond_with	gnuld	# assume the C compiler uses GNU ld

Summary:	geany gdb plugin
Summary(pl.UTF-8):	wtyczka dla geany wspierająca gdb
Name:		geany-plugin-gdb
Version:	0.0.2
Release:	1
License:	GPL v2
Group:		Libraries
Source0:	http://plugins.geany.org/geanygdb/geanygdb-%{version}.tar.gz
# Source0-md5:	9e088888ac81c902fa5fe487e147efdf
URL:		http://plugins.geany.org/geanygdb/
BuildRequires:	atk-devel
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	geany-devel >= 0.16
BuildRequires:	glib-devel
BuildRequires:	gtk+2-devel >= 2:2.8
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	pango-devel
BuildRequires:	rpmbuild(macros) >= 1.198
Requires:	gdb
Requires:	geany >= 0.16
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
This is a plugin to provide integrated debugging from Geany using the
GNU debugger (gdb).

%descriptaion -l pl.UTF-8
Ta wtyczka zapewnia zintegrowanie debugownia z Geany dzięki użyciu GNU
debugera (gdb).

%package static
Summary:	geany-plugin-gdb static library
Summary(pl.UTF-8):	Biblioteka statyczna geany-plugin-gdb
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{rel}

%description  static
geany-plugin-gdb static library.

%description static -l pl.UTF-8
Biblioteka statyczna geany-plugin-gdb.

%clean
rm -rf $RPM_BUILD_ROOT

%prep
%setup -q -n geanygdb-%{version}

%build
%{__libtoolize}
%{__aclocal}
%{__autoheader}
%{__automake}
%{__autoconf}

%configure \
%{?with_gnuld: --with-gnu-ld} \
%{!?with_nls: --disable-nls}  \
	 --enable-static

%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%find_lang geanygdb

%files -f geanygdb.lang
%defattr(644,root,root,755)
%attr(755,root,root)%{_bindir}/*
%{_libdir}/geany/*.so
%{_libdir}/geany/*.la

%files static
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/geany/*.a

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log:$


Więcej informacji o liście dyskusyjnej pld-devel-pl