libxclass/libxclass.spec

Name: libxclass
Summary: C++ X11 widget set providing win95 look and feel
Version: 0.9.1
Release: 1.2
License: GPL
Group: System Environment/Libraries
URL: http://xclass.sourceforge.net/
Description: This widget set allows C++ developers to easily create applications for the X11 windowing system employing the Windows(tm) 95 look and feel.

These are the header files required by any programmer wishing to author applications which make use of Xclass and a static library to compile against.

CentOS 7 x86_64

The build could not start because the following file is missing: xclass-0.9.1.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: xclass-0.9.1.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag


%{?el4:%define _without_modxorg 1}
%{?el3:%define _without_modxorg 1}
%{?el2:%define _without_modxorg 1}
%{?fc4:%define _without_modxorg 1}
%{?fc3:%define _without_modxorg 1}
%{?fc2:%define _without_modxorg 1}
%{?fc1:%define _without_modxorg 1}
%{?rh9:%define _without_modxorg 1}
%{?rh8:%define _without_modxorg 1}
%{?rh7:%define _without_modxorg 1}
%{?rh6:%define _without_modxorg 1}
%{?yd3:%define _without_modxorg 1}

%define real_name xclass

Summary: C++ X11 widget set providing win95 look and feel
Name: libxclass
Version: 0.9.1
Release: 1.2%{?dist}
License: GPL
Group: System Environment/Libraries
URL: http://xclass.sourceforge.net/

Source: http://dl.sf.net/xclass/xclass-%{version}.tar.gz
Patch0: xclass-0.9.1-gcc41.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gcc-c++
%{?_without_modxorg:BuildRequires: XFree86-devel}
%{!?_without_modxorg:BuildRequires: libXt-devel, libXmu-devel, libXpm-devel, libXext-devel}
%{?fc4:BuildRequires: compat-gcc-32-c++}
%{?fc3:BuildRequires: compat-gcc-c++}
%{?fc2:BuildRequires: compat-gcc-c++}
%{?fc1:BuildRequires: compat-gcc-c++}
%{?el3:BuildRequires: compat-gcc-c++}
%{?rh9:BuildRequires: compat-gcc-c++}
%{?rh8:BuildRequires: compat-gcc-c++}


Obsoletes: xclass, xclass-devel
Provides: xclass

%description
This widget set allows C++ developers to easily create applications for
the X11 windowing system employing the Windows(tm) 95 look and feel.

These are the header files required by any programmer wishing to author
applications which make use of Xclass and a static library to compile
against.

%prep
%setup -n %{real_name}-%{version}
%patch0 -p1

### FIXME: Make buildsystem use standard autotools directories (Fix upstream please)
%{__perl} -pi.orig -e '
		s|/usr/local/xclass-icons|\@datadir\@/xclass/icons|;
		s|/usr/local/xclass|\@sysconfdir\@/xclass|;
	' lib/libxclass/Makefile.in

%build
%{?fc4:export CXX="g++32"}
%{?fc3:export CXX="g++296"}
%{?fc2:export CXX="g++296"}
%{?fc1:export CXX="g++296"}
%{?el3:export CXX="g++296"}
%{?rh9:export CXX="g++296"}
%{?rh8:export CXX="g++296"}
%{?fc4:%{expand: %%define optflags -O2}}
%configure
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0644 lib/libxclass/libxclass.a %{buildroot}%{_libdir}/libxclass.a
%{__install} -Dp -m0755 config/xc-config %{buildroot}%{_bindir}/xc-config
%{__install} -Dp -m0644 doc/xclassrc %{buildroot}%{_sysconfdir}/xclass/xclassrc

%{__install} -d -m0755 %{buildroot}%{_includedir}/xclass
%{__install} -p -m0644 include/xclass/*.h %{buildroot}%{_includedir}/xclass/

%{__install} -d -m0755 %{buildroot}%{_datadir}/xclass/icons
%{__install} -p -m0644 icons/*.xpm %{buildroot}%{_datadir}/xclass/icons
%{__install} -p -m0644 lib/libxclass/icons/*.xpm %{buildroot}%{_datadir}/xclass/icons

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc doc/ChangeLog doc/GPL doc/LGPL doc/LICENSE doc/tcl.license.terms doc/tk.license.terms
%doc doc/INSTALL doc/Layout.notes doc/MimeTypes.README doc/Programming.notes
%config(noreplace) %{_sysconfdir}/xclass/
%{_bindir}/xc-config
%{_datadir}/xclass/
%{_includedir}/xclass/
%{_libdir}/libxclass.a

%changelog
* Sun Nov 13 2005 Dries Verachtert <dries@ulyssis.org> - 0.9.1-1
- Updated to release 0.9.1.

* Tue Dec 02 2003 Dag Wieers <dag@wieers.com> - 0.8.2-0
- Updated to release 0.8.2.

* Sun Dec 15 2002 Dag Wieers <dag@wieers.com> - 0.7.4-3
- Renamed package "xclass" to packages "libxclass".
- Get rid of useless devel package.

* Sun Dec 15 2002 Dag Wieers <dag@wieers.com> - 0.7.4-0
- Initial package. (using DAR)