Skip to content

Commit

Permalink
Merge pull request #58 from fepitre/update-readme
Browse files Browse the repository at this point in the history
Update readme with instructions for installing on RPM distros

Also fix glibc name in RPM spec for opensuse.
  • Loading branch information
denesb authored Jul 1, 2020
2 parents 488b649 + 96ddc5d commit 0ee3542
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 11 deletions.
69 changes: 58 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,48 @@ Patches and pull requests are welcome!

Feel free to contact me at: dns.botond at gmail dot com.

Installing
----------

### Fedora/CentOS/openSUSE

The package is available as RPM for Fedora 30+, openSUSE 15.1+ and CentOS 7. It's provided on a COPR
repository maintained by [@fepitre](https://github.com/fepitre): https://copr.fedorainfracloud.org/coprs/fepitre/xfce4-i3/.

#### Fedora and CentOS

Please have a look on the [official documentation](https://docs.pagure.org/copr.copr/how_to_enable_repo.html#how-to-enable-repo) on how to enable COPR repository. Then, for Fedora,

```
dnf install xfce4-i3-workspaces-plugin
```

and for CentOS,

```
yum install xfce4-i3-workspaces-plugin
```

#### openSUSE

Add the repo file by adjusting openSUSE release version. For example, for 15.1

```
zypper addrepo -f https://copr.fedorainfracloud.org/coprs/fepitre/xfce4-i3/repo/opensuse-leap-15.1/fepitre-xfce4-i3-opensuse-leap-15.1.repo fepitre-xfce4-i3
```

and for Tumbleweed

```
zypper addrepo -f https://copr.fedorainfracloud.org/coprs/fepitre/xfce4-i3/repo/opensuse-tumbleweed/fepitre-xfce4-i3-opensuse-tumbleweed.repo fepitre-xfce4-i3
```

Then, install the package

```
zypper install xfce4-i3-workspaces-plugin
```

Building
--------

Expand All @@ -44,24 +86,29 @@ Building
+ On binary distros you may have to install the -dev version of the required
packages
+ For the compilation to work out of the box I had to install i3ipc-glib in
the /usr prefix too.
the `/usr` prefix too.

### Building from git (needs autotools)
* git clone https://github.com/denesb/xfce4-i3-workspaces-plugin.git
* cd xfce4-i3-workspaces-plugin
* ./autogen.sh --prefix=/usr
* make
* sudo make install
```
git clone https://github.com/denesb/xfce4-i3-workspaces-plugin.git
cd xfce4-i3-workspaces-plugin
./autogen.sh --prefix=/usr
make
sudo make install
```

### Building from release tarball
* Download & extract tarball
* cd xfce4-i3-workspaces-plugin
* ./configure --prefix=/usr
* make
* sudo make install

```
cd xfce4-i3-workspaces-plugin
./configure --prefix=/usr
make
sudo make install
```

*Note:*
The --prefix=/usr is needed because if installed in /usr/local prefix the
The `--prefix=/usr` is needed because if installed in `/usr/local` prefix the
plugin is not discovered by xfce-panel. Maybe there is a way to tell xfce-panel
to look in other places too, but I haven't found it just yet.

Expand Down
4 changes: 4 additions & 0 deletions xfce4-i3-workspaces-plugin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ BuildRequires: libxfce4util-devel
BuildRequires: xfce4-panel-devel
BuildRequires: i3ipc-glib

%if 0%{?suse_version} >= 1500
Requires: libglib-2_0-0
%else
Requires: glib2
%endif
Requires: libxfce4ui
Requires: libxfce4util
Requires: xfce4-panel
Expand Down

0 comments on commit 0ee3542

Please sign in to comment.