File gastman.spec of Package gastman
%define srcext tar.bz2
%define GLIBFLAGS %(pkg-config glib-2.0 --cflags 2>/dev/null)
%define GTK2FLAGS %(pkg-config gtk+-2.0 --cflags 2>/dev/null)
%define GTK2LIBS %(pkg-config gtk+-2.0 --libs 2>/dev/null)
# Common info
Name: gastman
Version: 0.svn.56
Release: wiz%{?extraver:0.}1
License: GPL
Group: Productivity/Telephony/Servers
Summary: Graphical Manager interface for Asterisk
# Build-time parameters
BuildRequires: pkgconfig
BuildRequires: gtk2-devel glib2-devel db-devel
BuildRoot: %{_tmppath}/%{name}-root
Source: %{name}-%{version}%{?extraver}.%{srcext}
%description
Gastman is a graphical Manager interface for Asterisk.
%prep
%setup -q -n %{name}-%{version}%{?extraver}
%build
%{__make} %{?_smp_mflags} \
CFLAGS="%{optflags} %{GTK2FLAGS} %{GLIBFLAGS} -Iinclude -DGTK_ENABLE_BROKEN" \
LIBS="%{GTK2LIBS} -lm -ldb -Wl,--as-needed -Wl,--strip-all"
%install
%{__install} -D -m755 gastman %{buildroot}%{_bindir}/gastman
%{__install} -d -m755 %{buildroot}%{_datadir}/gastman/icons
%{__cp} art/*.xpm %{buildroot}%{_datadir}/gastman/icons/
%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%dir %{_datadir}/gastman/icons
%dir %{_datadir}/gastman
%{_bindir}/gastman
%{_datadir}/gastman/icons/*.xpm
%changelog