summaryrefslogtreecommitdiff
path: root/xseticon/xseticon.spec
blob: 9c37fa419d928245b15247640a4d60befed7d404 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
%define debug_package %{nil}
Name:		xseticon
Version:	0.1
Release:	2%{?dist}
Summary:	set x application icons

Group:	Applications/X11
License:	GPLv2
URL:		http://www.leonerd.org.uk/code/xseticon/
#Source0:	%%{url}/%%{name}-%%{version}+bzr14.tar.gz
Source0: https://gitlab.com/bgstack15/big-sources/raw/master/%{name}/%{name}-%{version}+bzr14.tar.gz
Source1: README

BuildRequires:	libXmu-devel
BuildRequires:	gcc
BuildRequires:	gd-devel
BuildRequires:	glib2-devel
#BuildArch: all
#Requires:	
%global dirname %{name}-%{version}+bzr14

%description
Xterm, and likely many other X11 programs, do not set themselves window icons, which window managers typically use to represent that program window in switcher lists, taskbars, and so on. This program can set the X11 window icon for any given window, to that of a given image file.

%prep
%setup -q -c %{dirname}
cd *
cp -p %{SOURCE1} .
# install to prefix provided by rpmbuild
sed -i -r -e '/^\s*PREFIX=.*/s:^\s*PREFIX=.*:PREFIX=$(DESTDIR)/usr:' Makefile

%build
#%%configure
cd *
make %{?_smp_mflags}

%install
cd *
%make_install

%files
%{_bindir}/%{name}
%if 0%{?el6}%{?el7}
%doc */LICENSE
%else
%license */LICENSE
%endif
%doc */README

%changelog
* Wed Dec 26 2018 B Stack <bgstack15@gmail.com> 0.1-1
- Initial rpm built
bgstack15