Fex

Check-in [1bcc17afdf]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:rpm packaging complete (?)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | master
Files: files | file ages | folders
SHA3-256: 1bcc17afdfe35ae62f7a1005b8e67eee6e2673dba020b3f1a6b205115c33b1c9
User & Date: jesse@mccluresk9.com 2014-08-16 20:18:34
Context
2014-09-08
22:01
Better font handling (using "toy" api); workaround for configurenotify check-in: d2ce34100e user: jesse@mccluresk9.com tags: trunk, master
2014-09-05
20:09
Update README.md check-in: 164df476af user: jesse@mccluresk9.com tags: trunk, master
2014-08-16
20:18
rpm packaging complete (?) check-in: 1bcc17afdf user: jesse@mccluresk9.com tags: trunk, master
19:44
added buildrequires check-in: efdd904266 user: jesse@mccluresk9.com tags: trunk, master
Changes

Changes to pkg/README.md.

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
###FEX Distibion and packaging

Currently only a PKGBUILD for archlinux is provided.


I will work on making suitable packaging materials for other
distributions and/or will gladly accept pull requests from those who are
more familiar with other distros.







####Dependencies

The following packages and all their dependencies are required.

+ cairo
+ desktop-file-utils
+ fftw
+ libxpm
+ libsndfile
+ python2

Dependencies for building fex include the above packages, along with any
associated -dev packages for distros that use split packages (e.g.,
ubuntoo), and the following:

+ git
+ latex2man

####Building

There is no need to configure:

```bash
git clone http://github.com/TrilbyWhite/fex.git


|
>

|
|
|
>
>
>
>
>
>













|
|
<
<
<







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
###FEX Distibion and packaging

For distributions equipped to build from git sources (e.g. Archlinux,
Slackware), all packaging materials will be provided in subdirectories here.

For other distrobutions, I will work on making suitable packaging materials
available and/or will gladly accept pull requests from those who are more
familiar with other distros.  The directories for such distros contain the
materials I currently use to build packages for those targets.

Binary and/or source packages will be available at the site below as they
become available:

http://behaviorenterprises.com/repo/

####Dependencies

The following packages and all their dependencies are required.

+ cairo
+ desktop-file-utils
+ fftw
+ libxpm
+ libsndfile
+ python2

Dependencies for building fex include the above packages, along with any
associated -dev or -devel packages for distros that use split packages, and,
of course, git to pull the source code.




####Building

There is no need to configure:

```bash
git clone http://github.com/TrilbyWhite/fex.git

Deleted pkg/fedora/fex.sh.

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
#!/bin/bash

## CHECK BUILD DEPENDENCIES:
makedeps=('cairo-devel' 'fftw-devel' 'git' 
	'libsndfile-devel' 'libXpm-devel' 'rpm-build')
to_install=
for dep in "${makedeps[@]}"; do
	rpm -q $dep >/dev/null 2>&1 || to_install+=" $dep"
done
if [[ -n $to_install ]]; then
	echo "installing missing build dependencies"
	sudo yum install $to_install
fi

## CHECK BUILD ENVIRONMENT:
TOPDIR=$(rpmbuild --eval '%_topdir')
mkdir -p ${TOPDIR}/{BUILD,RPMS,SOURCES,SPECS,SRPMS}

## GET CODE AND MAKE SOURCE TARBALL:
git clone https://github.com/BehaviorEnterprises/fex.git
cd fex
FEX_VER="2.$(git rev-list --count HEAD)"
make dist
mv ./fex*.tar.gz ${TOPDIR}/SOURCES/fex-${FEX_VER}.tar.gz

## PREPARE SPEC FILE:
cp fex/fedora/fex.spec ${TOPDIR}/SPECS/
sed -i 's/^version: .*$/version: '$FEX_VER'/' ${TOPDIR}/SPECS/fex.spec
sed -i 's/[0-9]*\.[0-9]*\.tar\.gz$/'$FEX_VER'.tar.gz/' ${TOPDIR}/SPECS/fex.spec

## CLEAN UP:
cd ..
rm -rf fex

## RUN RPMBUILD:
cd ${TOPDIR}/SPECS
rpmbuild -ba fex.spec

<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<












































































Deleted pkg/fedora/fex.spec.

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
summary: Frequency Excursion Calculator
name: fex
version: 2.135
release: 1
license: GPL3
group: Applications/Science
source: fex-2.135.tar.gz
url: https://wiki.BehaviorEnterprises.com
vendor: Behavior Enterprises
packager: Jesse McClure jesse [at] mccluresk9 [dot] com
requires: cairo, desktop-file-utils, fftw, libsndfile, libXpm, python
buildrequires: cairo-devel, fftw-devel, gcc, libsndfile-devel, libX11-devel, libXpm-devel, pkgconfig
prefix: /usr

%description
Frequency Excursion Calculator

%prep
%setup -c

%build
make

%install
make "DESTDIR=${RPM_BUILD_ROOT}" install

%clean
rm -rf "${RPM_BUILD_ROOT}"

%post
update-desktop-database -q

%postun
update-desktop-database -q

%files
/usr/bin/fex
/usr/bin/fex-gtk
/usr/share/applications/
/usr/share/applications/fex.desktop
/usr/share/fex/
/usr/share/fex/config
/usr/share/man/man1/fex-help.1.gz
/usr/share/man/man1/fex.1.gz
/usr/share/pixmaps/fex.png

<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<




























































































Added pkg/rpm/build.sh.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
#!/bin/bash

## CHECK BUILD ENVIRONMENT:
TOPDIR=$(rpmbuild --eval '%_topdir')
mkdir -p ${TOPDIR}/{BUILD,RPMS,SOURCES,SPECS,SRPMS}

## GET CODE AND MAKE SOURCE TARBALL:
git clone https://github.com/BehaviorEnterprises/fex.git
cd fex
FEX_VER="2.$(git rev-list --count HEAD)"
make dist
mv ./fex*.tar.gz ${TOPDIR}/SOURCES/fex-${FEX_VER}.tar.gz

## PREPARE SPEC FILE:
cp pkg/fedora/fex.spec ${TOPDIR}/SPECS/
sed -i 's/^version: .*$/version: '$FEX_VER'/' ${TOPDIR}/SPECS/fex.spec
sed -i 's/[0-9]*\.[0-9]*\.tar\.gz$/'$FEX_VER'.tar.gz/' ${TOPDIR}/SPECS/fex.spec

## INSTALL BUILD DEPS:
## Uncomment the next line for the initial build
#sudo yum-builddep ${TOPDIR}/SPECS/fex.spec

## CLEAN UP:
cd ..
rm -rf fex

## RUN RPMBUILD:
cd ${TOPDIR}/SPECS
rpmbuild -ba fex.spec

Added pkg/rpm/fex.spec.





























































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
summary: Frequency Excursion Calculator
name: fex
version: 2.135
release: 1
license: GPL3
group: Applications/Science
source: fex-2.135.tar.gz
url: https://wiki.BehaviorEnterprises.com
vendor: Behavior Enterprises
packager: Jesse McClure jesse [at] mccluresk9 [dot] com
requires: cairo, desktop-file-utils, fftw, libsndfile, libXpm, python
buildrequires: cairo-devel, fftw-devel, gcc, libsndfile-devel, libX11-devel, libXpm-devel, pkgconfig
prefix: /usr

%description
Frequency Excursion Calculator

%prep
%setup -c

%build
make

%install
make "DESTDIR=${RPM_BUILD_ROOT}" install

%clean
rm -rf "${RPM_BUILD_ROOT}"

%post
update-desktop-database -q

%postun
update-desktop-database -q

%files
/usr/bin/fex
/usr/bin/fex-gtk
/usr/share/applications/
/usr/share/applications/fex.desktop
/usr/share/fex/
/usr/share/fex/config
/usr/share/man/man1/fex-help.1.gz
/usr/share/man/man1/fex.1.gz
/usr/share/pixmaps/fex.png